const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports=[
    new HtmlWebpackPlugin({
        template: './public/index.html',
        chunks: ['index'],
        inject: 'body',
        minify:false,  
        filename: 'index.html'
    }),
    new HtmlWebpackPlugin({
        template: './public/html/login.html',
        chunks: ['login'], 
        inject: 'body',
        minify:false, 
        filename: 'html/login.html'
    }),
    new HtmlWebpackPlugin({
        template: './public/html/register.html',
        chunks: ['register'], 
        inject: 'body',
        minify:false, 
        filename: 'html/register.html'
    }),
    new HtmlWebpackPlugin({
        template: './public/html/list.html',
        chunks: ['list'], 
        inject: 'body',
        minify:false, 
        filename: 'html/list.html'
    }),
    new HtmlWebpackPlugin({
        template: './public/html/detail.html',
        chunks: ['detail'], 
        inject: 'body',
        minify:false, 
        filename: 'html/detail.html'
    }),
    new HtmlWebpackPlugin({
        template: './public/html/car.html',
        chunks: ['car'], 
        inject: 'body',
        minify:false, 
        filename: 'html/car.html'
    }),
    new HtmlWebpackPlugin({
        template: './public/html/user.html',
        chunks: ['user'], 
        inject: 'body',
        minify:false, 
        filename: 'html/user.html'
    }),
]